<?php
/**
 * Created by PhpStorm.
 * User: Zhoujinda
 * Date: 2016/3/29
 * Time: 16:30
 */

namespace Api\Domain;

use Bbs\Api\ForumUserAdmingroupApi;

class BbsAdminOperDomain extends BaseDomain{

    protected $business_code = 'BbsAdminOper';

    protected $allowType = array("json", "rss", "html");

    /**
     * 关小黑屋
     */
    public function banUser(){

        $this->checkVersion(100);
        addLog("BbsAdminOper/banUser",$_GET,$_POST,"应用" . $this->client_id . "调用关小黑屋接口");

        $admin_uid = $this->_post('admin_uid','','管理人员ID缺失');
        $uid = $this->_post('uid','','用户ID缺失');
        $banned = $this->_post('banned','','banned参数缺失');

        $result = apiCall(ForumUserAdmingroupApi::BAN_USER,array($admin_uid,$uid,$banned));

        if($result['status']){
            $this->apiReturnSuc($result['info']);
        }else{
            $this->apiReturnErr($result['info']);
        }

    }

}